package com.company.servicename.enumerations;

/**
 * @author fangsong.zhang
 * @date 2019/8/30 15:23
 * Copyright zfs
 * 类说明: 返回码枚举
 */
public enum ResCodeEnum {
    /**
     * 请求成功
     */
    SUCCESS(0, "请求成功"),
    /**
     * 请求错误
     */
    FAIL(1, "请求错误"),
    /**
     * 请求异常
     */
    ERROR(2, "请求异常");

    private Integer key;
    private String value;

    ResCodeEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
